package com.hzit.task.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

/**
 * 支付宝支付对账任务：每天凌晨1点触发
 */
@Component
public class AlipayTradeReconJob {


    @Autowired
    private RestTemplate restTemplate;


    @XxlJob("alipayTradeReconJob")
    public ReturnT<String> execute(String param){

        Map map = new HashMap<>();

        map.put("对账渠道","");
        map.put("对账日期","");

       String result = restTemplate.postForObject("支付中心/recon",map,String.class);

        return null;
    }




}
